package com.ruoyi.zhgd.enums;

/**
* 拌和站类型
* @author cj
* @date 2023/10/8 10:06
* @return
**/
public enum SysStationType {

    ASPHALT("asphalt", "沥青拌和站", "AC"),
    CEMENT("cement", "水稳拌和站", "CSB"),
    CONCRETE("concrete", "混凝土拌和站", "CONCRETE");

    private String value;
    private String label;
    private String code;

    private SysStationType(String value, String label, String code) {
        this.value = value;
        this.label = label;
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    public String getCode() {
        return code;
    }

    public static SysStationType getByValue(String value) {
        SysStationType type = null;
        if(null != value) {
            for(SysStationType temp : SysStationType.values()) {
                if(value.equals(temp.getValue())) {
                    type = temp;
                    break;
                }
            }
        }
        return type;
    }
}
